package com.newdream.annotation.model;

import com.newdream.annotation.annotation.NeedAssignment;
import com.newdream.annotation.annotation.NeedSetValue;
import com.newdream.annotation.mapper.UserMapper;

import java.io.Serializable;

/**
 * @author: sanglei
 * @date: 2019-02-13 10:28
 * @description:
 */
public class Order implements Serializable {

    private String id;

    private String customerId;

    @NeedSetValue(beanClass = UserMapper.class, param = "customerId", method = "find", targetField = "name")
    private String customerName;
    @NeedAssignment
    private String unitId;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getUnitId() {
        return unitId;
    }

    public void setUnitId(String unitId) {
        this.unitId = unitId;
    }
}
